<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../layout/main.jsp" %>
 <div id="wrapper">
  <div id="page-wrapper-inner" class="gray-bg dashbard-1">

 <div class="row wrapper  white-bg page-heading">
        <!-- <div class="wrapper wrapper-content animated fadeInRight"> -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>新增技能组</h5>
                        </div>
                        <div class="ibox-content">
                       <f:form action="skill/create" modelAttribute="skill" method="post" id="newForm" cssClass="form-horizontal">
                             <div class="form-group form-inline col-md-6">
                                 <label class="form-label control-label">名称：</label>
                                 <f:input path="name" cssClass="form-control form-control-60"/>
                                 <em class="required_field">*</em>
                                 <f:errors path="name" cssClass="error-msg"></f:errors>
                             </div>
                              <div class="form-group form-inline col-md-6">
                                <label class="form-label control-label">编号：</label>
                                 <f:input path="queueId" cssClass="form-control form-control-60"/>
                                 <em class="required_field">*</em>
                                 <f:errors path="queueId" cssClass="error-msg"></f:errors>
                            </div>  
                                <div class="form-group form-inline col-md-6">
                                <label class="form-label control-label">最大排队数：</label>
                                 <f:input path="maxNum" cssClass="form-control form-control-60"/>
                                 <em class="required_field">*</em>
                                 <f:errors path="maxNum" cssClass="error-msg"></f:errors>
                            </div>  
                        <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">排队等待音：</label>
                                     <f:select path="mediaId" cssClass="form-control form-control-60">
                                    <f:option value="">请选择</f:option>
                                    <f:options items="${medias}" itemValue="id" itemLabel="name" /> 
                                </f:select>  
                                     <em class="required_field">*</em>
                                     <f:errors path="mediaId" cssClass="error-msg"></f:errors>
                            </div>
                            <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">退出队列按键：</label>
                                     <f:select path="exitKey" cssClass="form-control form-control-60">
                                   <f:option value="">请选择</f:option>
                                    <f:option value="0">0</f:option>
                                    <f:option value="1">1</f:option>
                                    <f:option value="2">2</f:option>
                                    <f:option value="3">3</f:option>
                                    <f:option value="4">4</f:option>
                                    <f:option value="5">5</f:option>
                                    <f:option value="6">6</f:option>
                                    <f:option value="7">7</f:option>
                                    <f:option value="8">8</f:option>
                                    <f:option value="9">9</f:option>
                                    <f:option value="*">*</f:option>
                                    <f:option value="#">#</f:option>
                                </f:select>  
                                     <em class="required_field">*</em>
                                     <f:errors path="exitKey" cssClass="error-msg"></f:errors>
                            </div>
                            <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">排队超时时长：</label>
                                     <f:input path="timeoutLen" cssClass="form-control form-control-60"/>   
                                     <em class="required_field">*</em>
                                     <f:errors path="timeoutLen" cssClass="error-msg"></f:errors>
                            </div>
                             <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">超时语音：</label>
                                     <f:select path="timeoutMediaId" cssClass="form-control form-control-60">
                                    <f:option value="">请选择</f:option>
                                    <f:options items="${medias}" itemValue="id" itemLabel="name" /> 
                                </f:select>  
                                     <em class="required_field">*</em>
                                     <f:errors path="timeoutMediaId" cssClass="error-msg"></f:errors>
                            </div>
                            
                            <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">继续排队按键：</label>
                                     <f:select path="continuteKey" cssClass="form-control form-control-60">
                                       <f:option value="">请选择</f:option>
                                    <f:option value="0">0</f:option>
                                    <f:option value="1">1</f:option>
                                    <f:option value="2">2</f:option>
                                    <f:option value="3">3</f:option>
                                    <f:option value="4">4</f:option>
                                    <f:option value="5">5</f:option>
                                    <f:option value="6">6</f:option>
                                    <f:option value="7">7</f:option>
                                    <f:option value="8">8</f:option>
                                    <f:option value="9">9</f:option>
                                    <f:option value="*">*</f:option>
                                    <f:option value="#">#</f:option>
                                </f:select>  
                                     <em class="required_field">*</em>
                                     <f:errors path="continuteKey" cssClass="error-msg"></f:errors>
                            </div>
                   
                             <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">最大排队次数：</label>
                                     <f:input path="maxQueueCount" cssClass="form-control form-control-60"/>   
                                     <em class="required_field">*</em>
                                     <f:errors path="maxQueueCount" cssClass="error-msg"></f:errors>
                           </div>
                   
                                 <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">报工号提示音：</label>
                                     <f:select path="tipMediaId" cssClass="form-control form-control-60">
                                    <f:option value="">请选择</f:option>
                                   <f:options items="${medias}" itemValue="id" itemLabel="name" /> 
                                </f:select>  
                                     <em class="required_field">*</em>
                                     <f:errors path="tipMediaId" cssClass="error-msg"></f:errors>
                            </div>
                           
                            <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">分配策略：</label>
                                     <f:select path="strategy" cssClass="form-control form-control-60">
                                    <f:option value="">请选择</f:option>
                                    <f:option value="1">记忆轮转</f:option>
                                    <f:option value="2">线性振铃</f:option>
                                    <f:option value="3">优先级</f:option>
                                    <f:option value="4">最小次数(日)</f:option>
                                    <f:option value="5">最小次数(月)</f:option>
                                    <f:option value="6">最长空闲</f:option>
                                    <f:option value="7">累计时长(日)</f:option>
                                    <f:option value="8">累计时长(月)</f:option>
                                    
                                </f:select>  
                                     <f:errors path="strategy" cssClass="error-msg"></f:errors>
                            </div>
                            
                               <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">振铃超时：</label>
                                     <f:input path="noAnswerTimeout" cssClass="form-control form-control-60"/>   
                                     <f:errors path="noAnswerTimeout" cssClass="error-msg"></f:errors>
                           </div>
                                       <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">整理时长：</label>
                                     <f:input path="acwTimeout" cssClass="form-control form-control-60"/>   
                                     <f:errors path="acwTimeout" cssClass="error-msg"></f:errors>
                           </div>
                          <div class="form-group form-inline col-md-6">
                                    <label class="form-label control-label">开启顺振：</label>
                                     <f:select path="sequenceRing" cssClass="form-control form-control-60">
                                    <f:option value="0">否</f:option>
                                     <f:option value="1">是</f:option>
                        </f:select> 
                           </div>
                            
                               <div class="form-group">
                                    <div class="col-sm-4 form-btn-area">
                                      <a  href="javascript:submitForm();" class="btn btn-primary" role="button">保存</a>
                                        <a  href="<c:url value="/media"/>" class="btn btn-info" role="button">取消</a>
                                    </div>
                                </div>
                       </f:form>
                    
                        </div>
                    </div>
                </div>
            </div>
        </div>
   <script type="text/javascript">
   
   function submitForm(){ 
       $('#newForm').submit();
   }
   
   </script>
        
 </div>
 </div>